package com.twu.biblioteca;


public class CustomerMembershipOption implements CustomerOptionHandler{
    private Library library;

    public CustomerMembershipOption(Library library) {
        this.library = library;
    }

    public String customerOption() {
        User user = library.getUser();
        if(!user.hasLoggedIn()){
            return "Please talk to a Librarian. Thank you.";
        }else {
            return user.toString();
        }
    }
}
